package com.acme.bankapp.domian.bank;

public abstract class AbstractAccount implements Account {

	protected double balance;

	public AbstractAccount(double amount) {
		this.balance = amount;
	}

	public double getBalance() {
		return balance;
	}

    protected void setBalance(double balance) {
        this.balance = balance;
    }

    public void deposit(final double amount){
        this.setBalance(this.balance + amount);
    }

	public abstract void withdraw(final double amount);

    public abstract double maximumAmountToWithdraw();

}
